﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Recyclebin.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Common.Recyclebin" %>

<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc2" %>
<!doctype html>
<html>
<head runat="server">
    <title>回收站管理</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    <%: Styles.Render("~/Content/Bootstrap/css") %>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc2:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <BootStrap:Breadcrumb ID="BC_Path" runat="server"></BootStrap:Breadcrumb>
            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" OnRowCommand="GV_List_RowCommand"
                OnRowDeleting="GV_List_RowDeleting" DataKeyNames="ID" GridLines="None" CssClass="table table-bordered table-condensed table-hover">
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <HeaderTemplate>
                            <input name="chkHeader" onclick="javascript:SelectAll(this);" type="checkbox" value="chkHeader" />
                        </HeaderTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="标题">
                        <ItemTemplate>
                            <%# MyLink(Eval("ContentTitle").ToString(), 60, Eval("ID"), Eval("Hits")) %></ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="录入" DataField="Editor">
                        <ItemStyle Width="60px" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:CommandField ShowDeleteButton="True" HeaderText="删除">
                        <ItemStyle HorizontalAlign="Center" Width="40px" />
                    </asp:CommandField>
                    <asp:ButtonField CommandName="Disdeleted" HeaderText="还原" Text="还原">
                        <ItemStyle HorizontalAlign="Center" Width="40px" />
                    </asp:ButtonField>
                </Columns>
                <HeaderStyle CssClass="HeaderStyle" />
            </asp:GridView>
            <div class="btn-group">
                <asp:Button ID="btnDelSeletedID" runat="server" Text="删除选中" OnClick="DelSeletedID_Click"
                    EnableViewState="False" CssClass="btn btn-danger" OnClientClick="return confirm('注意，删除后将不可恢复！');">
                </asp:Button>
                <asp:Button ID="btnDelALL" runat="server" Text="清空回收站" OnClick="DelALL_Click" EnableViewState="False"
                    CssClass="btn btn-danger" OnClientClick="return confirm('注意，删除后将不可恢复！');"></asp:Button>
                
                <asp:Button ID="btnTrunSelectID" runat="server" Text="还原选中" OnClick="TrunSelectID_Click"
                    EnableViewState="False" Cssclass="btn btn-default"></asp:Button>
                
                <asp:Button ID="btnTrunAll" runat="server" Text="还原所有" OnClick="TrunAll_Click" EnableViewState="False"
                    Cssclass="btn btn-default"></asp:Button>
            </div>
            <WinnerCMS:PageNavigation ID="PageNavigation1" runat="server" SubmitButtonclass="btn btn-default"
                PageSize="15" OnPageChanging="PageNavigation1_PageChanging" CustomInfoSectionWidth="30%">
            </WinnerCMS:PageNavigation>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
